{% extends 'home/common/base.html' %}
{% block body %}
{% include "home/common/header.html" %}
<div class="position"></div>
<div class="overall">
    <div class="left">
        {% for art in pagination.items %}
        <div class="xnews2">
            <div class="pic">
                <a href="{{url_for('home_article.index', aid=art.id)}}">
                    <img src="{% if art.pic != '' %}{{art.pic}}{% else %}/static/home/images/error.png{% endif %}" alt="{{art.title}}" />
                </a>
            </div>
            <div class="dec">
                <h3><a href="{{url_for('home_article.index', aid=art.id)}}">{{art.title}}</a></h3>
                <div class="time">发布时间：{{art.update_time}}</div>
                <p>{{art.description}}</p>
                <div class="time">
                    {% for t in art.tags %}
                    <a href='{{url_for("home_search.index", tid=t.id)}}'>{{t.tagname}}</a>
                    {% endfor %}
                </div>
            </div>
        </div>
        {% endfor %}

        {{page_func.render_pagination(pagination, 'home.index')}}
        
    </div>
    {% include "home/common/right.html" %}
</div>
{% endblock %}